package com.app.yc.ifapp.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：TanTun
 * 时间：2017/3/17
 * 邮箱：32965926@qq.com
 * 描述：设备实体类
 */

public class Term implements Parcelable {
    private String term_Id;
    private int termNo;
    private String termSn;
    private String termName;
    private int termTypeId;
    private String termType;
    private String notes;

    protected Term(Parcel in) {
        term_Id = in.readString();
        termNo = in.readInt();
        termSn = in.readString();
        termName = in.readString();
        termTypeId = in.readInt();
        termType = in.readString();
        notes = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(term_Id);
        dest.writeInt(termNo);
        dest.writeString(termSn);
        dest.writeString(termName);
        dest.writeInt(termTypeId);
        dest.writeString(termType);
        dest.writeString(notes);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<Term> CREATOR = new Creator<Term>() {
        @Override
        public Term createFromParcel(Parcel in) {
            return new Term(in);
        }

        @Override
        public Term[] newArray(int size) {
            return new Term[size];
        }
    };

    public String getTerm_Id() {
        return term_Id;
    }

    public void setTerm_Id(String term_Id) {
        this.term_Id = term_Id;
    }

    public int getTermNo() {
        return termNo;
    }

    public void setTermNo(int termNo) {
        this.termNo = termNo;
    }

    public String getTermSn() {
        return termSn;
    }

    public void setTermSn(String termSn) {
        this.termSn = termSn;
    }

    public String getTermName() {
        return termName;
    }

    public void setTermName(String termName) {
        this.termName = termName;
    }

    public int getTermTypeId() {
        return termTypeId;
    }

    public void setTermTypeId(int termTypeId) {
        this.termTypeId = termTypeId;
    }

    public String getTermType() {
        return termType;
    }

    public void setTermType(String termType) {
        this.termType = termType;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Term() {
    }

}
